/*************************************************************************
	> File Name: EnumTest.java
	> Author: 
	> Mail: 
	> Created Time: 2018年03月25日 星期日 23时06分20秒
 ************************************************************************/

public class EnumTest{
    enum Week{Sunday, Monday, Wednesday, Tuesday, Thursday, Friday, Saturday};
    public static void main(String args[]){
        Week test= Week.Friday;
        
        System.out.println(test);
        System.out.println("The ordinal of test is :"+test.ordinal());
        System.out.println("The name of test is :"+test.name());
    }
}

